package com.blog.personalblog.mapper;

import com.blog.personalblog.bo.ArticleBO;
import com.blog.personalblog.entity.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleMapper {
    List<Article> findAll();

    int createArticle(Article article);

    int updateArticle(Article article);

    List<Article> getArticlePage(@Param("articleBO") ArticleBO articleBO);

    void deleteArticle(Integer id);

    Article getById(Integer id);
}
